c# get buttons row and column in grid

115

c# get buttons row and column in grid -

private void Button_Click(object sender, RoutedEventArgs e)
{
   var button = (Button)sender;
   var row = Grid.GetRow(button);
   var column = Grid.GetColumn(button);

   // ...other code.
}

Comments

Submit
0 Comments